using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UniRlv.COL
{
public class CodeInfoSingle:BaseEntity
{

  public int sourceID { get; set; }

  public string code { get; set; }

  public string outsideCode { get; set; }

  public int stationNumber { get; set; }

  public int serialNumber { get; set; }

  public int subDeviceNumber { get; set; }

  public int serialNumber2 { get; set; }

  public int taskID { get; set; }

  public int codeState { get; set; }

  public int packageState { get; set; }

  public int printTimes { get; set; }

  public DateTime inTime { get; set; }

  public string remarks { get; set; }

  public override bool Equals(object obj)
  {
      if (obj != null && obj is CodeInfoSingle)
      {
          CodeInfoSingle objComp = obj as CodeInfoSingle;

          return objComp.code.Equals(this.code, StringComparison.OrdinalIgnoreCase);
      }

      return false;
  }

  public override string ToString()
  {
      return string.Format("[{0:{1}}]{2}", stationNumber, serialNumber, code);
  }
}
}
